<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="GridFiltersTD" targetNamespace="http://tempuri.org/GridFiltersTD.xsd" xmlns:mstns="http://tempuri.org/GridFiltersTD.xsd" xmlns="http://tempuri.org/GridFiltersTD.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="RWR_SettingsConnectionString1" IsAppSettingsProperty="true" Modifier="Assembly" Name="RWR_SettingsConnectionString1 (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.RWR.Windows.Components.DSBO.Properties.Settings.GlobalReference.Default.RWR_SettingsConnectionString1" Provider="System.Data.SqlClient" />
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="RWR_SettingsConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="RWR_SettingsConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.RWR.Windows.Components.DSBO.Properties.Settings.GlobalReference.Default.RWR_SettingsConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="GridFiltersTableAdapter" GeneratorDataComponentClassName="GridFiltersTableAdapter" Name="GridFilters" UserDataComponentName="GridFiltersTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="RWR_SettingsConnectionString (Settings)" DbObjectName="[RWR.Settings].dbo.GridFilters" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [GridFilters] WHERE (([UserName] = @Original_UserName) AND ([GridName] = @Original_GridName))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UserName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_GridName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GridName" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [GridFilters] ([UserName], [GridName], [cboGroup], [cboLogic], [cboColumn], [cboOperator], [txtValue], [txtMapping]) VALUES (@UserName, @GridName, @cboGroup, @cboLogic, @cboColumn, @cboOperator, @txtValue, @txtMapping);
SELECT UserName, GridName, cboGroup, cboLogic, cboColumn, cboOperator, txtValue, txtMapping FROM GridFilters WHERE (GridName = @GridName) AND (UserName = @UserName)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@GridName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GridName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@cboGroup" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cboGroup" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@cboLogic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cboLogic" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@cboColumn" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cboColumn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@cboOperator" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cboOperator" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@txtValue" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="txtValue" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@txtMapping" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="txtMapping" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        UserName, GridName, cboGroup, cboLogic, cboColumn, cboOperator, txtValue, txtMapping
FROM            GridFilters</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [GridFilters] SET [UserName] = @UserName, [GridName] = @GridName, [cboGroup] = @cboGroup, [cboLogic] = @cboLogic, [cboColumn] = @cboColumn, [cboOperator] = @cboOperator, [txtValue] = @txtValue, [txtMapping] = @txtMapping WHERE (([UserName] = @Original_UserName) AND ([GridName] = @Original_GridName));
SELECT UserName, GridName, cboGroup, cboLogic, cboColumn, cboOperator, txtValue, txtMapping FROM GridFilters WHERE (GridName = @GridName) AND (UserName = @UserName)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@GridName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GridName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@cboGroup" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cboGroup" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@cboLogic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cboLogic" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@cboColumn" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cboColumn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@cboOperator" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cboOperator" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@txtValue" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="txtValue" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@txtMapping" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="txtMapping" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UserName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_GridName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GridName" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="UserName" DataSetColumn="UserName" />
              <Mapping SourceColumn="GridName" DataSetColumn="GridName" />
              <Mapping SourceColumn="cboGroup" DataSetColumn="cboGroup" />
              <Mapping SourceColumn="cboLogic" DataSetColumn="cboLogic" />
              <Mapping SourceColumn="cboColumn" DataSetColumn="cboColumn" />
              <Mapping SourceColumn="cboOperator" DataSetColumn="cboOperator" />
              <Mapping SourceColumn="txtValue" DataSetColumn="txtValue" />
              <Mapping SourceColumn="txtMapping" DataSetColumn="txtMapping" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="RWR_SettingsConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteByUserNameGridName" Modifier="Public" Name="DeleteByUserNameGridName" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="DeleteByUserNameGridName">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>DELETE FROM GridFilters
WHERE        (UserName = @Original_UserName) AND (GridName = @Original_GridName)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="Original_UserName" ColumnName="UserName" DataSourceName="[RWR.Settings].dbo.GridFilters" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@Original_UserName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="Original_GridName" ColumnName="GridName" DataSourceName="[RWR.Settings].dbo.GridFilters" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@Original_GridName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="GridName" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
              </DbSource>
              <DbSource ConnectionRef="RWR_SettingsConnectionString (Settings)" DbObjectName="[RWR.Settings].dbo.GridFilters" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByUserNameGridName" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByUserNameGridName" GeneratorSourceName="FillByUserNameGridName" GetMethodModifier="Public" GetMethodName="GetDataByUserNameGridName" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByUserNameGridName" UserSourceName="FillByUserNameGridName">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        UserName, GridName, cboGroup, cboLogic, cboColumn, cboOperator, txtValue, txtMapping
FROM            GridFilters
WHERE        (UserName = @UserName) AND (GridName = @GridName)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="UserName" ColumnName="UserName" DataSourceName="[RWR.Settings].dbo.GridFilters" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@UserName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="GridName" ColumnName="GridName" DataSourceName="[RWR.Settings].dbo.GridFilters" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@GridName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="GridName" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="RWR_SettingsConnectionString (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="IsExistingGridFilters" Modifier="Public" Name="IsExistingGridFilters" QueryType="Scalar" ScalarCallRetval="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="IsExistingGridFilters">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     COUNT(*) AS GridFilterExists
FROM         dbo.GridFilters
WHERE     (UserName = @UserName) AND (GridName = @GridName)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="UserName" ColumnName="UserName" DataSourceName="[RWR.Settings].dbo.GridFilters" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@UserName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="GridName" ColumnName="GridName" DataSourceName="[RWR.Settings].dbo.GridFilters" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@GridName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="GridName" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="GridFiltersTD" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="GridFiltersTD" msprop:Generator_DataSetName="GridFiltersTD">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="GridFilters" msprop:Generator_UserTableName="GridFilters" msprop:Generator_RowDeletedName="GridFiltersRowDeleted" msprop:Generator_RowChangedName="GridFiltersRowChanged" msprop:Generator_RowClassName="GridFiltersRow" msprop:Generator_RowChangingName="GridFiltersRowChanging" msprop:Generator_RowEvArgName="GridFiltersRowChangeEvent" msprop:Generator_RowEvHandlerName="GridFiltersRowChangeEventHandler" msprop:Generator_TableClassName="GridFiltersDataTable" msprop:Generator_TableVarName="tableGridFilters" msprop:Generator_RowDeletingName="GridFiltersRowDeleting" msprop:Generator_TablePropName="GridFilters">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="UserName" msprop:Generator_UserColumnName="UserName" msprop:Generator_ColumnPropNameInRow="UserName" msprop:Generator_ColumnVarNameInTable="columnUserName" msprop:Generator_ColumnPropNameInTable="UserNameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="GridName" msprop:Generator_UserColumnName="GridName" msprop:Generator_ColumnPropNameInRow="GridName" msprop:Generator_ColumnVarNameInTable="columnGridName" msprop:Generator_ColumnPropNameInTable="GridNameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cboGroup" msprop:Generator_UserColumnName="cboGroup" msprop:Generator_ColumnPropNameInRow="cboGroup" msprop:Generator_ColumnVarNameInTable="columncboGroup" msprop:Generator_ColumnPropNameInTable="cboGroupColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cboLogic" msprop:Generator_UserColumnName="cboLogic" msprop:Generator_ColumnPropNameInRow="cboLogic" msprop:Generator_ColumnVarNameInTable="columncboLogic" msprop:Generator_ColumnPropNameInTable="cboLogicColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cboColumn" msprop:Generator_UserColumnName="cboColumn" msprop:Generator_ColumnPropNameInRow="cboColumn" msprop:Generator_ColumnVarNameInTable="columncboColumn" msprop:Generator_ColumnPropNameInTable="cboColumnColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="cboOperator" msprop:Generator_UserColumnName="cboOperator" msprop:Generator_ColumnPropNameInRow="cboOperator" msprop:Generator_ColumnVarNameInTable="columncboOperator" msprop:Generator_ColumnPropNameInTable="cboOperatorColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="txtValue" msprop:Generator_UserColumnName="txtValue" msprop:Generator_ColumnPropNameInRow="txtValue" msprop:Generator_ColumnVarNameInTable="columntxtValue" msprop:Generator_ColumnPropNameInTable="txtValueColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="txtMapping" msprop:Generator_UserColumnName="txtMapping" msprop:Generator_ColumnPropNameInRow="txtMapping" msprop:Generator_ColumnVarNameInTable="columntxtMapping" msprop:Generator_ColumnPropNameInTable="txtMappingColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:GridFilters" />
      <xs:field xpath="mstns:UserName" />
      <xs:field xpath="mstns:GridName" />
    </xs:unique>
  </xs:element>
</xs:schema>